*   Do File for Yearly Graphics: Gender & Judicial Nominations
                  *  8/18/2022
* PURPOSE:
* 	- Create Figure 2 in King, Schoenherr, and Ostrander PRQ

* Loading Data
import excel "YearTrends.xlsx", sheet("Sheet1") firstrow case(lower)

*  GRAPHICS FUN TIME!!!!


*  Basic Scatterplot of % Female by Year with Lowess Estimates
 twoway (scatter percfemale year) (lowess percfemale year)


* Scatterplot % Female with Observations Colored by Party!
 twoway (scatter percfemale year if party=="rep", mcolor(red)) (scatter percfemale year if party=="dem", mcolor(blue)) (lowess percfemale year)

* Basic Lowess of % PrevJfemale 
twoway (scatter percprevjfemale year) (lowess percprevjfemale year)
